<%@ page contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String width = "180";
%>

<script type="text/javascript">
	     
$(function() {
			
	//银行列表
	$("#bank").ligerComboBox({
         valueField: "key",
         textField: "value",
         autocomplete: function (e){ //模糊自动匹配
			filter_autoComboboxData(e.key, this);
			e.show();
		 }
	 });
	
	$.ajax({
		type: 'post',
		dataType:'json',
		url:'<%=path%>/account/fncGroupCompanyAccount/getBankList.do',
		success:function(msg){
			 if(msg){
				 	liger.get("bank").setData(msg);
				 	liger.get("bank").selectValue("${fncGroupCompanyAccountVO.bank}");
			 }else{
				 $.ligerDialog.SQalert({content:"开户银行加载失败", SQ_type: "error"});
			 }
		}
	});
	
});
			
</script>			
<div class="caption">
	<span class="title">所属公司</span>
</div>
<div class="fieldBox col_50">
	<div class="label">所属集团公司</div>
	<div class="field">
		<select id="groupCompanyId" name="groupCompanyId"
			ligerui="width: <%=width%>" >
			<option value="">请选择</option>
			<c:forEach items="${fncGroupCompanyList}" var="fncGroupCompany">
				<option value="${fncGroupCompany.id}"
					<c:if test="${fncGroupCompany.id ==fncGroupCompanyAccountVO.groupCompanyId }">selected="selected"</c:if>>${fncGroupCompany.name}</option>
			</c:forEach>
		</select>
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label">账户归属部门</div>
	<div class="field">
		<select id="buOrgcd" name="buOrgcd" ligerui="width: <%=width%>" validate="{required:true}">
			<option value="">请选择</option>
			<c:forEach items="${buOrgCdList}" var="item">
				<option value="${item.key}"
					<c:if test="${item.key ==fncGroupCompanyAccountVO.buOrgcd }">selected="selected"</c:if>>${item.value}</option>
			</c:forEach>
		</select> *
	</div>
</div>

<div class="caption">
	<span class="title">账户信息</span>
</div>
<div class="fieldBox col_50">
	<div class="label">开户银行</div>
	<div class="field">
        <input id="bank" name="bank"  type="text" class="ui-textbox" value="" placeholder="请选择"  ltype="combobox" validate="{required:true}">*
    </div>
</div>
<div class="fieldBox col_50">
	<div class="label">开户银行名称</div>
	<div class="field">
		<input id="bankName" name="bankName" type="text" class="ui-textbox"
			ligerui="width: <%=width%>" validate="{required:true}"
			value="${fncGroupCompanyAccountVO.bankName}" /> *
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label">开户地(城市)</div>
	<div class="field">
		<jsp:include page="../../system/sysRegion/region.jsp" flush="true">
			<jsp:param name="regionShowLvl" value="2" />
		</jsp:include> *
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">开户银行地址(详细)</div>
	<div class="field">
		<input id="bankAddress" name="bankAddress" type="text"
			class="ui-textbox"  validate="{required:true,maxlength:32}"
			value="${fncGroupCompanyAccountVO.bankAddress}" /> *
	</div>
</div>

<div class="fieldBox col_50">
	<div class="label">币种</div>
	<div class="field">
		<select id="currency" name="currency" ligerui="width: <%=width%>" validate="{required:true}">
			<option value="">请选择</option>
			<c:forEach items="${currencyList}" var="item">
				<option value="${item.key}"
					<c:if test="${item.key ==fncGroupCompanyAccountVO.currency}">selected="selected"</c:if>>${item.value}</option>
			</c:forEach>
		</select> *
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label">账户性质</div>
	<div class="field">
		<select id="bankNature" name="bankNature" ligerui="width:<%=width%>" validate="{required:true}">
			<option value="">请选择</option>
			<c:forEach items="${bankNatureList}" var="item">
				<option value="${item.key}"
					<c:if test="${item.key ==fncGroupCompanyAccountVO.bankNature}">selected="selected"</c:if>>${item.value}</option>
			</c:forEach>
		</select> *
	</div>
</div>
<div class="fieldBox col_100">
	<div class="label">账户用途</div>
	<div class="field">
		<input id="bankUse" name="bankUse" type="text" class="ui-textbox"
			 validate="{required:true,maxlength:32}"
			value="${fncGroupCompanyAccountVO.bankUse}" /> *
	</div>
</div>
<div class="caption">
	<span class="title">开户信息(仅开户流程填写)</span>
</div>
<div class="fieldBox col_50">
	<div class="label">银行账号</div>
	<div class="field">
		<input id="bankAccount" name="bankAccount" type="text"
			class="ui-textbox" ligerui="width: <%=width%>"
			value="${fncGroupCompanyAccountVO.bankAccount}" />
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label">开户日期</div>
	<div class="field">
		<input id="accountOpenDate" name="accountOpenDate" type="text"
			ligerui="width: <%=width%>" class="ui-datepicker"
			value="${fncGroupCompanyAccountVO.accountOpenDate}" />
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label">是否有网银</div>
	<div class="field">
		<select id="isNetBank" name="isNetBank" ligerui="width: <%=width%>">
			<option value="">请选择</option>
			<option value="1"
				<c:if test="${1==fncGroupCompanyAccountVO.isNetBank}">selected="selected"</c:if>>是</option>
			<option value="0"
				<c:if test="${0==fncGroupCompanyAccountVO.isNetBank}">selected="selected"</c:if>>否</option>
		</select>
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label">是否在线用户</div>
	<div class="field">
		<select id="isOnlineAccount" name="isOnlineAccount"
			ligerui="width: <%=width%>">
			<option value="">请选择</option>
			<option value="1"
				<c:if test="${1==fncGroupCompanyAccountVO.isOnlineAccount}">selected="selected"</c:if>>是</option>
			<option value="0"
				<c:if test="${0==fncGroupCompanyAccountVO.isOnlineAccount}">selected="selected"</c:if>>否</option>
		</select><span><font color="red">(连接拜特系统为在线账户)</font></span>
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label">法人姓名</div>
	<div class="field"><input type="text" id="corpName" value="${fncGroupCompanyAccountVO.corpName}"   name="corpName" class="ui-textbox" ligerui="width: <%=width%>" >*</div>
</div>
<div class="fieldBox col_50">
	<div class="label">法人预留电话</div>
	<div class="field"><input type="text" id="corpPhone" value="${fncGroupCompanyAccountVO.corpPhone}" name="corpPhone" class="ui-textbox" ligerui="width: <%=width%>" >*</div>
</div>
<div class="fieldBox col_50">
	<div class="label">经办人姓名</div>
	<div class="field"><input type="text" id="operName" value="${fncGroupCompanyAccountVO.operName}" name="operName" class="ui-textbox" ligerui="width: <%=width%>" >*</div>
</div>
<div class="fieldBox col_50">
	<div class="label">经办人预留电话</div>
	<div class="field"><input type="text" id="operPhone" value="${fncGroupCompanyAccountVO.operPhone}" name="operPhone" class="ui-textbox" ligerui="width: <%=width%>" >*</div>
</div>
<div class="fieldBox col_100">
	<div class="label">客户经理及联系方式</div>
	<div class="field">
		<input id="cstMgr" name="cstMgr" type="text" class="ui-textbox"
			value="${fncGroupCompanyAccountVO.cstMgr}" />
	</div>
</div>
<!-- 附件上传 -->
<c:if test="${operate == 'updateAll'  || operate == 'initiatorUpdate' || operate == 'updateOpenAccount' || operate == 'add' }">
<div class="fieldBox col_100" >
<div class="label">开户资料</div>
<div class="field">
     <jsp:include page="../../rfbuss/frCommFilesUpload.jsp" flush="true" >
		<jsp:param name="filePath" value="ref"/>
	 </jsp:include>
	 
	<div id="fileUpload" class="upfileBoxs"></div>
	<span class="sq-button sq-button-hasicon" id="btnUpload" onclick="ajaxFileUploadImg('uploads1',2)">
		<i class="sqBtnIco_9"></i>上传
	</span>
</div>
</div>
</c:if>
<c:if test="${operate == 'openAccount' || operate == 'closeAccount' }">
<div style="display:none">	
	<jsp:include page="../../rfbuss/frCommFilesUpload.jsp" flush="true" >
		<jsp:param name="filePath" value="ref"/>
	 </jsp:include>
	 
	<div id="fileUpload" class="upfileBoxs"></div>
	<span class="sq-button sq-button-hasicon" id="btnUpload" onclick="ajaxFileUploadImg('uploads1',2)">
		<i class="sqBtnIco_9"></i>上传
	</span>
</div>
</c:if>
<!-- 开户资料 -->
<div class="fieldBox col_100">
	<div style="width: 98%; margin-left: 1%;">
	<jsp:include page="../../rfbuss/frCommFilesList.jsp" flush="true" ></jsp:include>
		<div id="ligergrid_file2" class="sq-grid"></div>
	</div>
</div>
<!-- end 开户资料 -->
<div class="caption">
	<span class="title">销户信息(仅销户流程填写)</span>
</div>

<div class="fieldBox col_50">
	<div class="label">销户日期</div>
	<div class="field">
		<input id="accountCloseDate" name="accountCloseDate" type="text"
			ligerui="width: <%=width%>" class="ui-datepicker"
			value="${fncGroupCompanyAccountVO.accountCloseDate}" />
	</div>
</div>
<div class="fieldBox col_50">
	<div class="label"></div>
	<div class="field"></div>
</div>

